html,
body {
  width: 100%;
  height: 100%;
  min-width: 500px;
}
/* 容器 */
.container {
  min-width: 100%;
  min-height: 100%;
  background: url("../img/bg.jpg") no-repeat;
  background-size: cover;
  position: relative;
}
/* 内容 */
.content {
  width: 428px;
  height: 328px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -163px;
  margin-left: -214px;
  border-radius: 5px;
  box-shadow: 1px 1px 5px #000;
  background: linear-gradient(#fff1eb, #ace0f9);
  opacity: 0.7;
  overflow: hidden;
}
/* 盒子 */
.loginBox,
.registerBox {
  width: 100%;
  height: 100%;
  position: relative;
}
.registerBox {
  display: none;
}
/* 公用样式 */
/* 输入框与按钮 */
.primary {
  width: 300px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin: 0 auto;
}
/* 输入框 */
.primaryInput {
  width: 260px;
  background: #fff;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  font-size: 0;
  padding-left: 40px;
  position: relative;
}
.primaryInput input {
  width: 100%;
  height: 100%;
  background: 0;
  border: 0;
  outline: none;
  font-size: 16px;
}
/* 登录/注册按钮 */
.primaryBtn {
  font-size: 16px;
  border-radius: 5px;
  color: #fff;
  background: #406fff;
  box-shadow: 0px 0px 10px inset #fff;
  cursor: pointer;
}
/* 图标 */
.icon {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  left: 0;
}
.icon_name {
  background: url("../img/name.png") no-repeat;
  background-size: 20px 20px;
  background-position: center center;
}
.icon_password {
  background: url("../img/password.png") no-repeat;
  background-size: 20px 20px;
  background-position: center center;
}
.icon_compassword {
  background: url("../img/compassword.png") no-repeat;
  background-size: 20px 20px;
  background-position: center center;
}
/* 登录切换按钮 */
.toBtn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}
/* 登录 */
.login_title {
  height: 128px;
  line-height: 128px;
  text-align: center;
  color: #fb0;
  font-size: 30px;
}
.login_passwordBox,
.loginBtn {
  margin-top: 15px;
}
.toRegister {
  background: url("../img/registerBtn.png") no-repeat;
  background-position: center center;
}
/* 注册 */
.register_title {
  height: 90px;
  line-height: 90px;
  text-align: center;
  color: #fb0;
  font-size: 30px;
}
.register_passwordBox,
.register_compasswordBox,
.registerBtn {
  margin-top: 15px;
}
.toLogin {
  background: url("../img/loginBtn.png") no-repeat;
  background-position: center center;
}

/* 提示 */
.message {
  padding: 20px;
  border-radius: 5px;
  background: #909399;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  display: none;
}
.close {
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 20px;
  color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}
.message#error {
  background: #f56c6c;
}
.message#normal {
  background: #909399;
}
.message#success {
  background: #67c23a;
}
